CC=gcc
CXX=g++
CFLAGS=-c -m32 -g -Wall
CXXFLAGS=
LFLAGS=-m32 -shared 
INCPATH=
LIBS=
RM=del

all: example_dll.dll
	
example_dll.dll: example_dll.o
	$(CC) $(LFLAGS) -Wl,--out-implib,example_dll.a,--output-def,example_dll.def example_dll.o -o example_dll.dll
	
example_dll.o: example_dll.c
	$(CC) $(CFLAGS) -o example_dll.o example_dll.c
	
clean:
	$(RM) *.o
	$(RM) *.a
	$(RM) *.dll
	
asm:
	gcc -S -m32 -masm=intel -fno-asynchronous-unwind-tables example_dll.c -o example_dll.asm